/*
 * util.cpp
 *
 *  Created on: 13.01.2009
 *      Author: fregat
 */

# include <iostream>

int getInfoForUSB (unsigned char *, int);

int	getInfoForUSB (unsigned char *buf, int len)
{
	static int n = 1;
	//std::cin >> n;
	memset (buf, (unsigned char)n++, len);

	if (n > 10)
		n = 1;
	_sleep (1000);
	//memcpy (buf, &n, sizeof (int));
	return len; //sizeof (int);
}
